<nav class="navbar navbar-static-top" role="navigation">
    <div class="navbar-header" style="width:auto;">
        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button" style="background-color:black;">
            <i class="fa fa-bars "></i>
        </button>
        <span class="navbar-brand">{$Think.CONFIG.title}</span>
    </div>
    <div class="navbar-collapse collapse" id="navbar">
        <ul class="nav navbar-nav">

            <volist name="menu" id="v">
                <empty name="v.children">
                    <li <if condition="$v['id'] eq $current['id']">class="active"</if>>
                        <a aria-expanded="false" role="button" href="{:U($v['name'])}" target="_self">{$v.title} </a>
                    </li>
                </empty>
                <notempty name="v.children">
                    <li <if condition="($v['id'] eq $current['id']) OR ($v['id'] eq $current['pid']) OR ($v['id'] eq $current['ppid'])">class="dropdown active"</if>>
                        <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> {$v.title} <span class="caret"></span></a>

                        <notempty name="v.children">
                            <ul  role="menu" class="dropdown-menu">
                                <volist name="v.children" id="vv">
                                    <li <if condition="$vv['id'] eq $current['id']">class="active"</if>>
                                    <a href="{:U($vv['name'])}" target="_self">
                                        <i class="{$vv.icon}"></i>
                                        {$vv.title}
                                    </a>
                                    <b class="arrow"></b>
                                    </li>
                                </volist>
                            </ul>
                        </notempty>
                    </li>
                </notempty>
            </volist>



        </ul>
        <ul class="nav navbar-top-links navbar-right">
            <li class="dropdown">
                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 您好 {$user.name}！<i class="fa fa-send-o"></i></a>
                <ul role="menu" class="dropdown-menu">
                    <volist name="sildmenu" id="v">
                            <li <if condition="$v['id'] eq $current['id']">style="color:#1ab394"</if>>
                            <a aria-expanded="false" role="button" href="{:U($v['name'])}" target="_self">{$v.title} </a>
                            </li>
                    </volist>
                    <li class="divider"></li>
                    <li><a href="{:U('Index/logout')}">安全退出</a></li>
                </ul>
            </li>

        </ul>
    </div>
</nav>